﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace RN.ERP.Web.Handlers
{
    /// <summary>
    /// PsnZGZSHandler 的摘要说明
    /// </summary>
    public class PsnZGZSHandler : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            string action = context.Request["action"];
            string data = context.Request["data"];
            string result=string.Empty;
            switch(action)
            {
                case "GetList":
                    result = GetZGZSList(data);
                    break;
                case "Update":
                    result = UpdateZGZSInfo(data);
                    break;
                default: break;
            }
                
        }

        /// <summary>
        /// 获取资格证书列表
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        protected string GetZGZSList(string data)
        {
            string result = string.Empty;
            return result;
        }

        /// <summary>
        /// 上传资格证书信息，需要进行判断是新增还是修改
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        protected string UpdateZGZSInfo(string data)
        {
            string result = string.Empty;
            return result;
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}